package com.example.dragon.untis;


import android.support.v4.app.Fragment;

import com.example.dragon.fragment.OrderFragment;
import com.example.dragon.fragment.OrdersFragment;
import com.example.dragon.fragment.UserFragment;
import com.example.dragon.xmf.R;

/**
 * Created by Dragon on 2017/6/3.
 */

public class FragmentCheck {
    public static Fragment getFragmentById(int checkedID) {
        Fragment fragment = null;
        switch (checkedID) {
            case R.id.rb_first:
                fragment=new OrderFragment();
                break;
            case R.id.rb_second:
                fragment=new OrdersFragment();
                break;

            case R.id.rb_thrid:
                fragment=new UserFragment();
                break;
            default:
                break;
        }
        return fragment;
    }
}
